package com.schooldate.Test;

import com.schooldate.base.BaseAction;
import com.schooldate.model.entity.UserInfo;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.context.annotation.Scope;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Controller;

/**
 * Created by etund on 2015/3/20 0020.
 */
@Controller
@Scope("prototype")
@SuppressWarnings("all")
public class ActionTest extends QuartzJobBean {
//判断是否执行的企标
    private boolean isRuning = false;
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        if(!isRuning){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("任务执行");
        }
    }
}
